<template>
    <div>
        {{ $parent.a }}
        <br />
        <button @click="$parent.hello()">调用父组件方法</button>
    </div>
</template>

<script>
export default {
    created() {
        console.log(this.$parent);
    }
}
</script>